package org.map.core
{

	public class IsoVO
	{
		//地图对象的唯一标识
		public var id:String=""
		
		//地图物品的位置数值
		public var pos:Point3D=new Point3D()
		
		//地图物品的列
		public var col:int=1
		
		//地图物品的行
		public var row:int=1
		
		//地图物品的占位列数
		public var cols:int=1
		
		//地图物品的占位行数
		public var rows:int=1
			
		//地图物品的旋转角度
		public var rotation:int=0
			
		//地图物品的所放
		public var scale:int=10
		
		//名字
		public var name:String
		
	    //编号
		public var tag:int
		
        //关联的占位tile
		public var _tiles:Array=[]

		//程序验证需求,记录对象的旧位置
		public var oldPosition:Point3D;
			
		/**
		 * 对应ItemType的类别 
		 * @return 
		 * 
		 */			
		public function get type():String{
			
			return "";
			//SourceIDManager.instance.getItemType(String(id))
		
		}
		
		public function IsoVO()
		{
		}
		
		public function clone():IsoVO{
			
			var _vo:IsoVO=new IsoVO()
		
			_vo.id=id
			
			_vo.pos=pos.clone()
			
			_vo.col=col
			
			_vo.row=col
			
			_vo.cols=cols
			
			_vo.rows=rows
			
			_vo.rotation=rotation
			
			_vo.scale=scale
			
			_vo.name=name
			
			_vo.tag=tag
			
			_vo._tiles=_tiles
			
			return _vo
		
		}
		
	}
}